
export default function (coreData) {
  // 新增文档附件
  if (!coreData.docsAttachment) {
    coreData.docsAttachment = {
      speed: 15,
      list: []
    }
  }

  // 控件相关
  coreData.controls.forEach(control => {
    switch (control.type) {
      // 幻灯片定时器
      case 2:
        if (control.timerInterval === undefined) {
          control.timerInterval = 30000
        }
        break
      // 视频声音控制
      case 5:
        if (control.allowSound === undefined) {
          control.allowSound = false
        }
        break
      // 倒计时新增字体控制
      case 8:
        if (control.fontSize === undefined) {
          control.fontSize = 32
        }
        break
    }
  })
  return coreData
}
